import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ExhibitionView from '../views/ExhibitionView.vue'
import GalleryView from '../views/GalleryView.vue'
import AboutView from '../views/AboutView.vue'
import ExhibitionDetailView from '../views/ExhibitionDetailView.vue'
import VirtualGalleryView from '../views/VirtualGalleryView.vue'
import BabylonExhibitionView from '../views/BabylonExhibitionView.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: HomeView
  },
  {
    path: '/exhibition',
    name: 'Exhibition',
    component: ExhibitionView
  },
  {
    path: '/exhibition/:id',
    name: 'ExhibitionDetail',
    component: ExhibitionDetailView,
    props: true
  },
  {
    path: '/exhibition/:id/virtual-gallery',
    name: 'VirtualGallery',
    component: VirtualGalleryView,
    meta: {
      hideNavbar: true,
      hideFooter: true,
      fullscreen: true
    }
  },
  {
    path: '/gallery',
    name: 'Gallery',
    component: GalleryView
  },
  {
    path: '/about',
    name: 'About',
    component: AboutView
  },

  {
    path: '/exhibition/:id/babylon-exhibition',
    name: 'BabylonExhibition',
    component: BabylonExhibitionView,
    meta: {
      hideNavbar: true,
      hideFooter: true,
      fullscreen: true
    }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router